const { SportCalendar } = require('@/models/report');

const getCalendars = async (req, res) => {
    const { user_id } = req.params;
    const calendars = await SportCalendar.getCalendars(user_id);
    res.json(calendars);
}
const exportCalendar = async (req, res) => {
    const { user_id } = req.params;
    const calendars = await SportCalendar.exportCalendar(user_id);
    res.json(calendars);
}
const getInsights = async (req, res) => {
    const { user_id } = req.params;
    const calendars = await SportCalendar.getInsights(user_id);
    res.json(calendars);
}

module.exports = {
    getCalendars,
    exportCalendar,
    getInsights
}
